/*
 * File:   InvalidFileExceptionTest.cpp
 * Author: Guilherme Monteiro
 *
 */

#include "InvalidFileExceptionTest.h"

CPPUNIT_TEST_SUITE_REGISTRATION(InvalidFileExceptionTest);

InvalidFileExceptionTest::InvalidFileExceptionTest() {
}

InvalidFileExceptionTest::~InvalidFileExceptionTest() {
}

void InvalidFileExceptionTest::setUp() {
}

void InvalidFileExceptionTest::tearDown() {
}

void InvalidFileExceptionTest::testInvalidFileException() {
    string path = "xx";
    InvalidFileException* invalidFileException = new InvalidFileException(path);
    const char* result = invalidFileException->what();
    
    string message = "ERROR ==> Invalid file: " + path;
    
    if (strcmp(result, message.c_str()) != 0) {
        CPPUNIT_ASSERT(false);
    }
}

